function reportException(message, source, lineno, colno, error)
{
	console.log('reportException', message, source, lineno, colno, error);

	alert('出现异常：' + message + '\n' +
		  '异常来源：' + source + '\n' +
		  '行：' + lineno + '\n' +
		  '列：' + colno + '\n' +
		  '错误代码：' + (error ? error.code : '(null)'));
}

window.onerror = reportException;
